package day10;

public class Triangle extends Graph{
    private double a;

    public Triangle(double a, double h) {
        this.a = a;
        this.h = h;
    }

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getH() {
        return h;
    }

    public void setH(double h) {
        this.h = h;
    }

    private double h;
    @Override
    public void area() {


    }
    public double area(double a){
        return a+a+a;
    }

    @Override
    public void perimeter() {

    }
    public double perimeter(double a,double h){
        return a*h;
    }
}
